package com.neuedu.guide;


/**
 * 从控制台中输入
 */
public class InputFromConsole {


    public static void main(String[] args) {

        java.util.Scanner  scanner = new java.util.Scanner(System.in);

        System.out.println("请输入一个数字");
        //获取输入的整形
        int numa = scanner.nextInt();


        System.out.println("inputIntNum = " + numa);


        System.out.println("请输入一个数字");
        //获取输入的整形
        int numb = scanner.nextInt();
        System.out.println("inputIntNum = " + numb);


        System.out.println("(numa + numb) = " + (numa + numb));
        System.out.println("(numa - numb) = " + (numa - numb));
        System.out.println("(numa * numb) = " + (numa * numb));
        System.out.println("(numa / numb) = " + (numa / numb));


    }


}
